package common.bean;

import common.constant.GlobalConstant;

/**
 * ZTree组件封装的视图Bean
 * 
 * @author liuxj
 * @version 1.0.0 2015年1月6日
 */
public class ZTreeView extends ToStringBean {
    private static final long serialVersionUID = -5217281219812354691L;

    /** 节点ID */
    private String id;
    
    /** 节点名称 */
    private String name;
    
    /** 节点编码 */
    private String code;
    
    /** 节点标题 */
    private String title;
    
    /** 父节点ID */
    private String pId;
    
    /** 节点类型 */
    private String type;
    
    /** 设置treeNode节点的展开/折叠状态 */
    private boolean open = false;
    
    /** 设置treeNode节点是否为父节点 */
    private boolean isParent = false;
    
    /** 节点的 checkBox/radio的勾选状态 */
    private boolean checked = false;
    
    /** 设置节点是否隐藏 checkbox/radio */
    private boolean nocheck = false;
    
    /** 设置节点的 checkbox/radio 是否禁用 */
    private boolean chkDisabled = false;
    
    /** 节点自定义图标的URL路径 */
    private String icon;
    
    /** 父节点自定义展开时图标的URL路径 */
    private String iconOpen;
    
    /** 父节点自定义折叠时图标的URL路径 */
    private String iconClose;
    
    /** 构成级别*/
    private String gcjb;
    
    /** 装备大类*/
    private String zbdl;
    
    /** 武器型号*/
    private String wqxh;
    
    /** 装备大类*/
    private String zblb;
    
    /** 装备标准名称*/
    private String mc;
    
    /** 装备小类*/
    private String zbxl;
    
    /** 测试子项目 */
    
    private String cszxm;
    
    /** 标准配套树序号 */
    private String bzptsxh;
    
    /** 批次编号 */
    private String pcbh;
    
    
    
    public String getPcbh() {
		return pcbh;
	}

	public void setPcbh(String pcbh) {
		this.pcbh = pcbh;
	}

	public String getBzptsxh() {
		return bzptsxh;
	}

	public void setBzptsxh(String bzptsxh) {
		this.bzptsxh = bzptsxh;
	}

	public String getCszxm() {
		return cszxm;
	}

	public void setCszxm(String cszxm) {
		this.cszxm = cszxm;
	}

	public String getZbxl() {
		return zbxl;
	}

	public void setZbxl(String zbxl) {
		this.zbxl = zbxl;
	}

	public String getMc() {
		return mc;
	}

	public void setMc(String mc) {
		this.mc = mc;
	}

	public String getWqxh() {
		return wqxh;
	}

	public void setWqxh(String wqxh) {
		this.wqxh = wqxh;
	}

	public String getZblb() {
		return zblb;
	}

	public void setZblb(String zblb) {
		this.zblb = zblb;
	}

	public String getZbdl() {
		return zbdl;
	}

	public void setZbdl(String zbdl) {
		this.zbdl = zbdl;
	}

	public String getGcjb() {
		return gcjb;
	}

	public void setGcjb(String gcjb) {
		this.gcjb = gcjb;
	}

	/** 获取zTree的root根节点 */
    public static ZTreeView getTreeRoot(String name){
        ZTreeView root = new ZTreeView();
        root.setId(GlobalConstant.TREE_ROOT_CODE);
        root.setName(name);
        root.setpId("0");
        root.setIsParent(true);
        root.setOpen(true);
        root.setNocheck(true);
        
        return root;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(boolean isParent) {
        this.isParent = isParent;
    }

    public boolean getChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean getNocheck() {
        return nocheck;
    }

    public void setNocheck(boolean nocheck) {
        this.nocheck = nocheck;
    }

    public boolean getChkDisabled() {
        return chkDisabled;
    }

    public void setChkDisabled(boolean chkDisabled) {
        this.chkDisabled = chkDisabled;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIconOpen() {
        return iconOpen;
    }

    public void setIconOpen(String iconOpen) {
        this.iconOpen = iconOpen;
    }

    public String getIconClose() {
        return iconClose;
    }

    public void setIconClose(String iconClose) {
        this.iconClose = iconClose;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    
}
